#include<iostream>
#include<vector>
using namespace std;

class Solution 
{
public:
    vector<int> findIndices(vector<int>& nums, int indexDifference, int valueDifference)
    {
        vector<int>answer;
        int n = nums.size();
        for (int i = 0; i < n; i++)
        {
            for (int j = n - 1; j >= i; j--)
            {
                if (abs(i - j) >= indexDifference && abs(nums[i] - nums[j]) >= valueDifference)
                {
                    return { i,j };
                }
            }
        }
        return { -1,-1 };
    }
};